home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
BBS Toolkit
/
BBS Toolkit.iso
/
doors_2
/
triv201.zip
/
SECOND.C
next >
Wrap
Text File
|
1992-07-10
|
501b
|
22 lines
#include <stdio.h>
main()
{
int yard,feet,inch;
printf("Please enter the length to be converted: ");
scanf("%d",&yard);
while(yard > 0) {
inch=36*yard;
feet=3*yard;
printf("%d yard(s) = \n",yard);
printf("%d feet \n",feet);
printf("%d inches \n",inch);
printf("Please enter another length to be /n");
printf("converted (0 stops program): ");
scanf("%d",&yard);
}
printf(">>> End of Program <<<");
return(0);
}